package cn.com.css.taxInspection.attention.service.impl;

import cn.com.css.taxInspection.attention.entity.T_SWJGTMP;
import cn.com.css.taxInspection.attention.mapper.T_SWJGTMPMapper;
import cn.com.css.taxInspection.attention.service.T_SWJGTMPService;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Arrays;
import java.util.List;

@Service
@Slf4j
public class T_SWJGTMPServiceImpl extends ServiceImpl<T_SWJGTMPMapper, T_SWJGTMP>  implements T_SWJGTMPService {
    @Override
    @DS("oracle")
    public List<T_SWJGTMP> getAllArea() {
        LambdaQueryWrapper<T_SWJGTMP> queryWrapper = Wrappers.lambdaQuery();
        String notinswjgdm[]={"12101000000","12101720000"};
        queryWrapper.notIn(T_SWJGTMP::getSwjgDm, Arrays.asList(notinswjgdm));
        return this.list(queryWrapper);
    }
}